﻿namespace KeppelLand.Services
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.Serialization;
    using System.ServiceModel;
    using System.ServiceModel.Activation;
    using System.ServiceModel.Web;
    using System.Text;

    [ServiceContract(Namespace = "KeppelLand.Services")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class ClaimService
    {
        // To use HTTP GET, add [WebGet] attribute. (Default ResponseFormat is WebMessageFormat.Json)
        // To create an operation that returns XML,
        //     add [WebGet(ResponseFormat=WebMessageFormat.Xml)],
        //     and include the following line in the operation body:
        //         WebOperationContext.Current.OutgoingResponse.ContentType = "text/xml";
        [OperationContract]
        public void DoWork()
        {
            // Add your operation implementation here
            return;
        }

        // Add more operations here and mark them with [OperationContract]

        [OperationContract]
        public KeppelLand.Entities.RejectionDetail GetRejectionDetail(string id)
        {
            // Add your operation implementation here

            KeppelLand.Entities.RejectionDetail detail = new Entities.RejectionDetail();
            detail.RejectDate = DateTime.Now;
            detail.RejectorId = "employee to name " + id;
            detail.RejectReason = "my very long jection reason";

            return detail;
        }
    }
}